package com.toune.movie.mvp.adapter;

import android.media.MediaPlayer;
import android.net.Uri;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.avos.avoscloud.AVObject;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.toune.movie.R;
import com.toune.movie.base.myUtil.MyUtil;
import com.toune.movie.vo.MusicVo;
import com.vondear.rxtool.RxFileTool;

import java.util.ArrayList;
import java.util.List;

public class AdapterDownHis extends BaseQuickAdapter<AVObject, BaseViewHolder> {
    private List<MediaPlayer> mediaPlayers = new ArrayList<>();

    public AdapterDownHis(int layoutResId, @Nullable List<AVObject> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, final AVObject item) {
        helper.setText(R.id.name_tv, item.getString("fileName"));
        helper.setText(R.id.author_tv, item.getString("authorName"));
        ImageView imageView = helper.getView(R.id.foder_iv);
    }
}
